package com.leyuangame.core.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


@Entity
@Table(name = "bm_game_partion")
@org.hibernate.annotations.Proxy(lazy = false)
public class GamePartion implements Serializable{
    @Id
    public String id;
    public String gameid;
    public String partionname;
    public BigDecimal mingold;
    public BigDecimal maxgold;
    public int initmultiple;
    public Date addtime;
    public String createuser;
    public int sort;
    public int isopen;
    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGameid() {
        return gameid;
    }

    public void setGameid(String gameid) {
        this.gameid = gameid;
    }

    public String getPartionname() {
        return partionname;
    }

    public void setPartionname(String partionname) {
        this.partionname = partionname;
    }

    public BigDecimal getMingold() {
        return mingold;
    }

    public void setMingold(BigDecimal mingold) {
        this.mingold = mingold;
    }

    public BigDecimal getMaxgold() {
        return maxgold;
    }

    public void setMaxgold(BigDecimal maxgold) {
        this.maxgold = maxgold;
    }

    public int getInitmultiple() {
        return initmultiple;
    }

    public void setInitmultiple(int initmultiple) {
        this.initmultiple = initmultiple;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public String getCreateuser() {
        return createuser;
    }

    public void setCreateuser(String createuser) {
        this.createuser = createuser;
    }

    public int getIsopen() {
        return isopen;
    }

    public void setIsopen(int isopen) {
        this.isopen = isopen;
    }

    @Id
    @Column(length = 32)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    public String getId() {
        return id;
    }
}
